import request from '@/utils/request'

// 查询统计数据
export function getStatistics(query) {
  return request({
    url: '/security/videoMonitor/statistics',
    method: 'get',
    params: query
  })
}
// 查询录像列表
export function listRecords(query) {
  return request({
    url: '/security/videoMonitor//list',
    method: 'get',
    params: query
  })
}

// 查询录像详细
export function getRecords(id) {
  return request({
    url: '/security/videoMonitor/' + id,
    method: 'get'
  })
}

// 新增录像
export function addRecords(data) {
  return request({
    url: '/security/videoMonitor',
    method: 'post',
    data: data
  })
}

// 修改录像
export function updateRecords(data) {
  return request({
    url: '/security/videoMonitor',
    method: 'put',
    data: data
  })
}

// 删除录像
export function delRecords(id) {
  return request({
    url: '/security/videoMonitor/' + id,
    method: 'delete'
  })
}

//
